#ifndef Scenic_Renderer_SimpleMediaFile_h
#define Scenic_Renderer_SimpleMediaFile_h


#include "common.h"


namespace Scenic
{
namespace Renderer
{
class Image;

class SimpleMediaFile : public Resource
{
public:
	SimpleMediaFile();
	virtual ~SimpleMediaFile();

	virtual void play() = 0;
	virtual void pause() = 0;
	virtual double getCurrentPosition() = 0;
	virtual void setCurrentPosition(double position) = 0;
	virtual double getLength() = 0;
	virtual void enumerateOutputFormats() = 0;
	virtual void setOutputFormat(int width, int height, Format format) = 0;
	
	static SimpleMediaFile *open(const char *filename, Image *image);
	static SimpleMediaFile *get(int id);
};

}
}

#endif
